package com.ithe.cart.interceptor;


/**
 * Created by zxd on 2022/5/16
 */
public class UserThreadLocal {

    private static ThreadLocal<User> tl=new ThreadLocal<>();

    public static void set(User user){
        tl.set(user);
    }

    public static User get(){
        return tl.get();
    }

    public static void remove(){
        tl.remove();
    }

}
